package io.gitee.sfch.chunmi.service.system.converter;

import io.gitee.sfch.chunmi.controller.system.form.SystemUserAddForm;
import io.gitee.sfch.chunmi.dao.system.entity.SystemUser;
import org.mapstruct.Mapper;
import org.mapstruct.MappingConstants;

/**
 * {@link SystemUser} 转换器
 */
@Mapper(componentModel = MappingConstants.ComponentModel.SPRING)
public interface SystemUserConverter {

    /**
     * {@link SystemUserAddForm} 转 {@link SystemUser}
     *
     * @param addForm 添加表单
     */
    SystemUser of(SystemUserAddForm addForm);
}
